﻿<%@ Page Title="Thanh toán" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Orders.aspx.cs" Inherits="Transport.Orders" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="wrapper order">
        <script type="text/javascript">
            $(document).ready(function () {
                $("#form1").validate({
                    errorElement: "span"
                });
            });
        </script>
        <script type="text/javascript">
            $(function () {
                $('#MainContent_giodon').timepicker({ timeFormat: "H:i" });
            }); 
            
        </script>
    
		<div class="ordtr">
			Chi tiết giỏ hàng
        </div>
        <div class="main_category_wrapper min">
        <form id="form1" runat="server">
			<a href="Hirecars.aspx">&lt; Trở về thuê xe</a>
			<br /><br />
			<asp:GridView runat="server" ID="gvShoppingCart" AutoGenerateColumns="false" EmptyDataText="Không có xe nào trong giỏ." GridLines="None" Width="100%" CellPadding="5" ShowFooter="true" DataKeyNames="CarID" OnRowDataBound="gvShoppingCart_RowDataBound" OnRowCommand="gvShoppingCart_RowCommand">
				<HeaderStyle HorizontalAlign="Left" BackColor="#585858" ForeColor="#FFFFFF" />
				<FooterStyle HorizontalAlign="Right" BackColor="#585858" ForeColor="#FFFFFF" />
				<AlternatingRowStyle BackColor="#F8F8F8" />
				<Columns>
					<asp:BoundField DataField="HieuXe" HeaderText="Hiệu Xe" />
                    <asp:BoundField DataField="TenDichVu" HeaderText="Dịch vụ" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="NgayDi" HeaderText="Ngày đi" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="GioDon" HeaderText="Giờ đón" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="DiaDiemDon" HeaderText="Địa điểm đón" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
                    <asp:TemplateField HeaderText="Remove">
						<ItemTemplate>
							<asp:LinkButton runat="server" ID="btnRemove" Text="Remove" CommandName="Remove" CommandArgument='<%# Eval("CarID") %>' style="font-size:12px;"></asp:LinkButton>
						</ItemTemplate>
					</asp:TemplateField>
					<asp:BoundField DataField="TotalPrice" HeaderText="Giá" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" DataFormatString="{0:C}" />
				</Columns>
			</asp:GridView>
			<br />
            <asp:ImageButton ID="btnUpdateCart" ImageUrl="~/images/candy_paypal_checkout.gif" AlternateText="Make payments with PayPal - it's fast, free and secure!" runat="server" onclick="btnThanhToan_Click" />
			
            
            <%
                if (null == Session["user_name"])
                    Response.Write("<div id='login_require'>Bạn cần&nbsp;<a href=\"login.aspx\"><i>đăng nhập</i></a>&nbsp;để thực hiện thanh toán</div>");
                %>
             <div id="diadiem">
                <div class="diadiem_wrapper">
                    <span class="title_diadiem">Ghi chú</span>
		            <div class="txt_diadiem"><asp:TextBox ID="ghichu" runat="server" 
                            TextMode="MultiLine" Height="197px" Width="400px"></asp:TextBox>
                    </div>
                </div>
                
            </div>
        </div>
    </form>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentFooter" runat="server">
</asp:Content>
